<cfcomponent>

<cffunction name="setMessage" access="remote">
	<cfargument name="message" type="struct" required="Yes" />
	<cfquery name="setMember" datasource="#application.datasource#">
		EXEC setMessage <cfif isDefined("arguments.message.id")>#arguments.message.id#<cfelse>NULL</cfif>, '#arguments.message.fromEmail#', '#arguments.message.subject#', '#arguments.message.body#', #arguments.message.dateAdded#;
	</cfquery>
</cffunction>

<cffunction name="getMessage">
	<cfargument name="messageId" type="numeric" required="Yes" />
	
</cffunction>

</cfcomponent>